package com.pzb.web.controller.wechat;

import java.util.ArrayList;
import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.pzb.common.annotation.Log;
import com.pzb.common.core.controller.BaseController;
import com.pzb.common.core.domain.AjaxResult;
import com.pzb.common.enums.BusinessType;
import com.pzb.wechat.domain.WechatIntegralChange;
import com.pzb.wechat.service.IWechatIntegralChangeService;
import com.pzb.common.core.page.TableDataInfo;

/**
 * 积分变更Controller
 * 
 * @author Mr_Wu
 * @date 2022-02-08
 */
@RestController
@RequestMapping("/integral")
public class WechatIntegralChangeController extends BaseController
{
    @Autowired
    private IWechatIntegralChangeService wechatIntegralChangeService;

    /**
     * 查询积分变更列表
     */
    @GetMapping("/list")
    public TableDataInfo list(@RequestParam("extAppid") String extAppid)
    {
        startPage();
        List<WechatIntegralChange> list = wechatIntegralChangeService.selectWechatIntegralChangeList(extAppid,getOpenid());
        return getDataTable(list);
    }

}
